/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package es.inforcard.katas.countingcodelines;

import java.util.ArrayList;
import java.util.List;

/**
 * Getiona cada token
 *
 * @author ricardo
 */
public class CommentTokenService {


       
       CommentToken commentTokentLine=new CommentToken("//",null);
       CommentToken commentTokentParagraph=new CommentToken("/*","*/");
       


    /**
     * Busca el token de comentario en un string
     * @param line
     * @return verdadero si encuentra el token
     */
    public boolean isCommentTokenLine(String line){

        boolean result=false;
        result=line.startsWith(commentTokentLine.getOpenToken());
        return result;

    }

    

}
